/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_section_relation.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_SECTION_RELATION
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_section_relation.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_SECTION_RELATION::CTable_PPM_SECTION_RELATION( )
 :NPCRecordSet( )
{
  setTableName( "PPM_SECTION_RELATION" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  EVENT_PRICING_STRATEGY_ID.setField( "EVENT_PRICING_STRATEGY_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( EVENT_PRICING_STRATEGY_ID );
  A_SECTION_ID.setField( "A_SECTION_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( A_SECTION_ID );
  Z_SECTION_ID.setField( "Z_SECTION_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( Z_SECTION_ID );
  RELATION_TYPE.setField( "RELATION_TYPE", DATA_CHAR, 3, 0 );
  makeTableItem( RELATION_TYPE );
}


CTable_PPM_SECTION_RELATION::CTable_PPM_SECTION_RELATION( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_SECTION_RELATION" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  EVENT_PRICING_STRATEGY_ID.setField( "EVENT_PRICING_STRATEGY_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( EVENT_PRICING_STRATEGY_ID );
  A_SECTION_ID.setField( "A_SECTION_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( A_SECTION_ID );
  Z_SECTION_ID.setField( "Z_SECTION_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( Z_SECTION_ID );
  RELATION_TYPE.setField( "RELATION_TYPE", DATA_CHAR, 3, 0 );
  makeTableItem( RELATION_TYPE );
}

CTable_PPM_SECTION_RELATION::~CTable_PPM_SECTION_RELATION( )
{
    close();
}

